import com.rupeng.game.GameCore;

public class main1 implements Runnable
{
      public static void main(String[] args)
		{
			GameCore.start(new main1());
		}
		
		public void run()
		{
			
			GameCore.setGameSize(400,410);                                //定义窗口大小
			GameCore.setGameTitle("加法计算器");                          //改变窗口名称
	        String a = GameCore.input(0, "请输入一个数字");
	        String b = GameCore.input(0, "请再输入一个数字");
	        int c = Integer.parseInt(a)+Integer.parseInt(b);          //相加
	        GameCore.alert(c);                                        //利用弹窗输出
	        		   
		}
}